const path = require("path");

module.exports = {
  //起别名，让访问路径更便捷
  chainWebpack: (config) => {
    config.resolve.alias.set("@", path.join(__dirname, "./src"));
  },
  devServer: {
    proxy: {
      "/mmdb": {
        target: "https://wx.maoyan.com",
        changeOrigin: true,
      },
      "/api": {
        target: "https://localhost:8081",
        changeOrigin: true,
      },
      "/ajax": {
        target: "https://m.maoyan.com",
        changeOrigin: true,
      },
    },
  },
};
